The following code demonstrates how to use the PEGetSectionFormat and PESetSectionFormat functions:
short sectionCode;
// The section we are interested in
struct PESectionOptions options;
sectionCode = PE_DETAILSECTION;
// The details section
// Initialize size of options structure
options.StructSize = sizeof(PESectionOptions);
if (!PEGetSectionFormat(Job, sectionCode, &options)){
// Handle error
}
short sectionCode;
// The section we are interested in
struct PESectionOptions options;
sectionCode = PE_DETAILSECTION;
// The details section
// Initialize options structure
options.StructSize = sizeof(PESectionOptions);
options.visible = TRUE;
options.newPageBefore = FALSE;
options.newPageAfter = FALSE;
options.keepTogether = TRUE;
options.suppressBlankLines = PE_UNCHANGED;
// leave as is
options.resetPageNAfter = FALSE;
options.printAtBottomOfPage = FALSE;
if (!PESetSectionFormat(Job, sectionCode, &options)){
// Handle error
}
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |